<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLinkSiteTable extends Migration{
    /**
     * Run the migrations.
     * @return void
     */
    public function up(){
        Schema::create('link_site', function (Blueprint $table) {
            //友情站点表
            $table->engine = 'MyISAM';
            $table->comment='友情站点表';
            $table->increments('id')->unsigned()->comment('自动增长主键');
            $table->string('link_name', 60)->default('')->comment('友情站点名称');
            $table->string('link_sign', 60)->unique()->default('')->comment('友情站点标识');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('link_site');
    }
}
